package com.example.lcit.controller;

import com.example.lcit.model.LcUser;
import com.example.lcit.model.LcUserDao;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.UUID;

/**
 * @Title:
 * @Author: lcit
 * @create: 2019-06-07 21:12
 */
@RestController
@RequestMapping("/lcit")
public class LcitController {

    @Resource
    private LcUserDao lcUserDao;

    @RequestMapping("/add")
    public void add(LcUser lcUser){
        lcUserDao.add(lcUser);
    }

    @RequestMapping("/delete")
    public void delete(String id) {
        lcUserDao.delete(id);
    }

    @RequestMapping("/update")
    public void update(LcUser lcUser){
        lcUserDao.update(lcUser);
    }

    @RequestMapping("/getById")
    public LcUser getById(String id){
       return lcUserDao.getById(id);
    }


}
